package com.xujiang.myblog.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Created by xujiang on 2017/4/21.
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class LoginResult {
    /**
     *
     * 登陆的泛型是此数据模型
     * 参考 AccessToken
     * 登陆中包含一个UserInfo
     *
     *
     * */

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    @JsonProperty("userinfo")
    private UserInfo userInfo;

    @Override
    public String toString() {
        return "LoginResult{" +
                "userInfo=" + userInfo +
                '}';
    }
}
